package array;

public class Student {
    private String name;
    private int score;

    public Student(String studentName, int studentScore) {
        name = studentName;
        score = studentScore;
    }

    @Override
    public String toString() {
        return String.format("Student(name: %s, score: %d)", name, score);
    }

    public static void main(String[] args) {
        Array<Student> arr = new Array<>();
        arr.addLast(new Student("yctc2580",66));
        arr.addLast(new Student("yctc258",77));
        arr.addLast(new Student("yctc25",88));
        arr.addLast(new Student("yctc2",99));
        arr.addLast(new Student("yctc",55));
        arr.addLast(new Student("yct",44));
        arr.addLast(new Student("yc",33));
        System.out.println(arr);
    }
}
